M.define("customerCertificate", function (customerCertificateUsername) {


    return {
        post: function (customer, certificate) {
            if(!isEmptyObject(certificate)){
                customerCertificateUsername.post(customer, certificate, certificate.username);
                customer = extendObj(customer, certificate);
                return customer;
            }
        }
    }
})